package com.pliu;

import com.pliu.config.TxConfig;
import com.pliu.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class mainTest {

	public static void main(String[] args) {

		AnnotationConfigApplicationContext applicationContext =
				new AnnotationConfigApplicationContext(TxConfig.class);
		UserService userService = (UserService) applicationContext.getBean("userServiceImpl");
		userService.add();
	}


}
